package entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @ClassName NewMessage
 * @Author 浮生光
 * @Date 2022/1/16 23:57
 * @Description NewMessage
 * @Version 1.0
 */
@XStreamAlias("xml")
public class NewMessage extends BaseMessage {
    private String articCount;
    private List<Article> articles = new ArrayList<Article>();

    public NewMessage(Map<String, String> requestMap, String articCount, List<Article> articles) {
        super(requestMap);
        this.setMsgType("news");
        this.articCount = articCount;
        this.articles = articles;
    }

    public String getArticCount() {
        return articCount;
    }

    public void setArticCount(String articCount) {
        this.articCount = articCount;
    }

    public List<Article> getArticles() {
        return articles;
    }

    public void setArticles(List<Article> articles) {
        this.articles = articles;
    }
}
